import React, { useEffect } from 'react'

function App () {
  const [count, setCount] = useState(0)

  useEffect(() => {
    (async () => {
      const res = await getData()
    })()
  })

  return <div>
    <span>{count}</span>
    <button onClick={() => setCount(count + 1)}> + 1</button>
  </div>
}

export default App